import pickle

my_dict = {'name':'xuebi','age':24}
p1 = pickle.dumps(my_dict)
print(p1)